/*
 *  Description: BOAT XU SOFT FHSS
 *  Version: V1.00
 *  Author: boat xu
 *  Email: xifengzui@outlook.com
 *  Date: 2020-07-14 08:55:54
 *  LastEditTime: 2020-07-16 16:50:44
 */ 

#ifndef __BSF_TIMER_H__
#define __BSF_TIMER_H__
#include "bsf_types.h"
#include "bsf_itypes.h"
#include "bsf.h"

typedef struct
{
    b_u16_t freqHoppTimeStamp;
    b_u16_t abnormalTimeStamp;
    b_u16_t ackTimeout;
    b_u16_t realTimeStamp;
    b_u16_t tabTimeStamp;
}bsf_timestamp;

typedef enum
{
    b_tt_fhss = 0x01,
    b_tt_abnormal = 0x02,
    b_tt_ackTimeout = 0x04,
    b_tt_tabTimeout = 0x08,
    b_tt_all = 0x0F
}bsf_timestampTypes;
void bsf_timer_resetTimestamp(bsf_timestampTypes typeOftimestamp);
b_boolean bsf_timer_isSelectTimestampGreateThan(bsf_timestampTypes selectTimestamp,b_u16_t val);
#endif